/**
 * 
 */
package org.tuestudent.grouppa;

/**
 * @author s121170 Class for servicing with data all the views related to
 *         planning
 */
public class PlanningViewController extends ViewController {

    /**
     * gives all the tasks that are assigned to {@code userName}
     * 
     * @param userName
     *            user for which you want to take tasks
     * @return list of tasks
     */
    public Task[] getTasks(String userName) {
        // TODO: get tasks of userName from server
        return null;
    }

    /**
     * adds a new task to database
     * 
     * @param newTask
     *            a task to add
     */
    public void addTask(Task newTask) {
        // TODO: send to server request to add the task
    }

    /**
     * remove a task from database
     * 
     * @param task
     *            a task to remove
     */
    public void removeTask(Task task) {
        // TODO: send to server request to remove a task
    }

    /**
     * starts recording the time for a specified task, will turn off recording
     * for any other task
     * 
     * @param task
     *            a task for which you want to record time
     */
    public void startRecordingTime(Task task) {
        finishRecordingTime();
        // TODO: start recording time for a specified task
    }

    /**
     * Stops recording time for any current recorded task
     */
    public void finishRecordingTime() {
        // TODO: stop recording time for any current task
    }

    /**
     * saves current planning to server
     * 
     * @param plan
     *            plan to save to server
     */
    public void savePlanning(Planning plan) {
        // TODO: save planning to server
    }

    @Override
    public void onMessageReceived(MessageFromServer message) {
        // TODO Auto-generated method stub

    }

    public static ViewController getInstance() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public void reset() {
        // TODO Auto-generated method stub
        
    }

}
